package model

type TableManager struct {
	tableMap map[uint32]*Table
}

func NewTableManager() *TableManager {
	m := &TableManager{
		tableMap: make(map[uint32]*Table),
	}
	return m
}

func (t *TableManager) AddTable(pTable *Table) {
	t.tableMap[pTable.TID] = ptable
}

var GTableMgr *TableManager

func init() {
	GTableMgr = NewTableManager()
}
